const rd = (start, end) => {
    return Math.floor(Math.random() * (end - start + 1)) + start
}

const updateAvatar = async () => {

    await new Promise(resolve => setTimeout(resolve, 150+rd(0, 10)));
};

const updateUsername = async () => {

    await new Promise(resolve => setTimeout(resolve, 100+rd(0, 10)));
};

module.exports = {
    updateAvatar,
    updateUsername
}; 